#include "pch.h"
#include "ModelLibrary.h"

ModelLibrary::ModelLibrary()
{
	this->models = new List();
}

ModelLibrary::~ModelLibrary()
{
	delete this->models;
}

// Adds a model to the libray and returns its index
int ModelLibrary::Add(Model* model)
{
	return this->models->Add(model);
}

// Removes a model from the libray
void ModelLibrary::Remove(Model* model)
{
	this->models->Remove(model);
}

// Gets the model from the library given the Shape ID
Model* ModelLibrary::GetModel(int ModelID)
{
	return (Model*)this->models->GetItem(ModelID);
}